<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_sleep_stop.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">dev_sleep_stop.h 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>浅/深睡眠  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;SWM341.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
dev_sleep_stop.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sleep__stop_8h__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sleep__stop_8h" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sleep__stop_8h" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sleep__stop_8h">
<area shape="rect" title="浅/深睡眠" alt="" coords="5,5,228,75"/>
<area shape="rect" title=" " alt="" coords="73,123,160,148"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sleep__stop_8h__dep__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sleep__stop_8hdep" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sleep__stop_8hdep" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__sleep__stop_8hdep">
<area shape="rect" title="浅/深睡眠" alt="" coords="1165,5,1387,75"/>
<area shape="rect" href="bsp__init_8h.html" title="板级硬件外设初始化" alt="" coords="1015,130,1273,185"/>
<area shape="rect" href="dev__sleep__stop_8c.html" title="浅/深睡眠" alt="" coords="1298,123,1521,192"/>
<area shape="rect" href="bsp__init_8c.html" title="板级硬件外设初始化" alt="" coords="5,247,264,302"/>
<area shape="rect" href="_flash_disk_8c.html" title="管理片外 SPI―Flash 的读写, 对接 FATFS 组件" alt="" coords="288,240,512,309"/>
<area shape="rect" href="load__mv_8c.html" title="播放 avi / wav 音视频" alt="" coords="536,240,760,309"/>
<area shape="rect" href="power__manager_8c.html" title=" " alt="" coords="784,240,1008,309"/>
<area shape="rect" href="userboot_8c.html" title="IAP 实现 UserBoot 功能" alt="" coords="1032,240,1256,309"/>
<area shape="rect" href="ui__boot_8c.html" title="开机动画/视频页, 挂载文件系统完成主页素材的导入" alt="" coords="1281,247,1522,302"/>
<area shape="rect" href="ui__update_8c.html" title="启动引导更新页, 挂载文件系统实现 UI 素材导入/更新(可选模块)" alt="" coords="1547,240,1765,309"/>
<area shape="rect" href="_mass_storage_8c.html" title=" " alt="" coords="1790,240,2031,309"/>
<area shape="rect" href="main_8c.html" title="主程序" alt="" coords="2056,247,2275,302"/>
</map>
</div>
</div>
<p><a href="dev__sleep__stop_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a5b06de9b1a4503a9890c7ae85f041c58"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__sleep__stop_8h.html#a5b06de9b1a4503a9890c7ae85f041c58">stop_init</a> (void)</td></tr>
<tr class="memdesc:a5b06de9b1a4503a9890c7ae85f041c58"><td class="mdescLeft">&#160;</td><td class="mdescRight">进入停止模式, 芯片完全停止工作  <a href="dev__sleep__stop_8h.html#a5b06de9b1a4503a9890c7ae85f041c58">更多...</a><br /></td></tr>
<tr class="separator:a5b06de9b1a4503a9890c7ae85f041c58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d4c631bc1d45f13302e7f874c8337eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__sleep__stop_8h.html#a4d4c631bc1d45f13302e7f874c8337eb">sleep_init</a> (void)</td></tr>
<tr class="memdesc:a4d4c631bc1d45f13302e7f874c8337eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">进入浅睡眠模式, 被唤醒后会退出该函数恢复程序继续执行, 外设工作状态以及 RAM 数据将会保持.  <a href="dev__sleep__stop_8h.html#a4d4c631bc1d45f13302e7f874c8337eb">更多...</a><br /></td></tr>
<tr class="separator:a4d4c631bc1d45f13302e7f874c8337eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >浅/深睡眠 </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>如想测量最低功耗电流值, 需要对 Demo 板进行硬件处理, 去掉磁珠 FB3 (3V3 -&gt; V33), 以电流表安倍档串联观测示数.</dd></dl>
<dl class="test"><dt><b><a class="el" href="test.html#_test000002">测试:</a></b></dt><dd>基于 34S 系列型号 Demo 板实测, MCU 进入浅睡眠下 约为 1.5 mA 左右, 个体差异会有些许浮动.</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__sleep__stop_8h_source.html">dev_sleep_stop.h</a> 中定义.</p>
</div><h2 class="groupheader">函数说明</h2>
<a id="a5b06de9b1a4503a9890c7ae85f041c58" name="a5b06de9b1a4503a9890c7ae85f041c58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b06de9b1a4503a9890c7ae85f041c58">&#9670;&#160;</a></span>stop_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stop_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>进入停止模式, 芯片完全停止工作 </p>
<dl class="section note"><dt>注解</dt><dd>1、进入 STOP 后只能通过 Wake-up 引脚唤醒, 不能按复位按键复位芯片 2、从 STOP 模式 Wake-up 后程序从头开始重新执行, RAM 中的所有数据将丢失 3、Wake-up 引脚只能是 PD6、PD15, 下降沿唤醒, 休眠期间需要保持高电平, 请将这两个 IO 接上拉电阻 4、仅 STOP 模式下, VDDA12 脚 USB 模块输入 1.2V 脚需要单独供电 </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__sleep__stop_8c_source.html">dev_sleep_stop.c</a> 第 <a class="el" href="dev__sleep__stop_8c_source.html#l00068">68</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sleep__stop_8h_a5b06de9b1a4503a9890c7ae85f041c58_icgraph.png" border="0" usemap="#adev__sleep__stop_8h_a5b06de9b1a4503a9890c7ae85f041c58_icgraph" alt=""/></div>
<map name="adev__sleep__stop_8h_a5b06de9b1a4503a9890c7ae85f041c58_icgraph" id="adev__sleep__stop_8h_a5b06de9b1a4503a9890c7ae85f041c58_icgraph">
<area shape="rect" title="进入停止模式, 芯片完全停止工作" alt="" coords="144,5,215,31"/>
<area shape="rect" href="power__manager_8c.html#aa125d952f6750a2c86b46ecfc611b399" title="请求进入某种电源模式" alt="" coords="5,5,96,31"/>
</map>
</div>

</div>
</div>
<a id="a4d4c631bc1d45f13302e7f874c8337eb" name="a4d4c631bc1d45f13302e7f874c8337eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d4c631bc1d45f13302e7f874c8337eb">&#9670;&#160;</a></span>sleep_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sleep_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>进入浅睡眠模式, 被唤醒后会退出该函数恢复程序继续执行, 外设工作状态以及 RAM 数据将会保持. </p>
<dl class="section note"><dt>注解</dt><dd>芯片的 ISP、SWD 引脚默认开启了上拉电阻, 会增加休眠功耗, 若想获得最低休眠功耗, 休眠前请关闭所有引脚的上拉/下拉电阻以及数字输入 </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__sleep__stop_8c_source.html">dev_sleep_stop.c</a> 第 <a class="el" href="dev__sleep__stop_8c_source.html#l00090">90</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_cgraph.png" border="0" usemap="#adev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_cgraph" alt=""/></div>
<map name="adev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_cgraph" id="adev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_cgraph">
<area shape="rect" title="进入浅睡眠模式, 被唤醒后会退出该函数恢复程序继续执行, 外设工作状态以及 RAM 数据将会保持." alt="" coords="5,55,83,80"/>
<area shape="rect" href="dev__rtc_8c.html#aedd83f0c9b0f418ce1097807c1b5d186" title="RTC 初始化" alt="" coords="167,5,229,31"/>
<area shape="rect" href="dev__sleep__stop_8c.html#af1f29b7ae72111910d2e931d0b9d376e" title="设置 USB 模块低功耗模式" alt="" coords="131,55,265,80"/>
<area shape="rect" href="dev__sleep__stop_8c.html#a2369e14249cb4d6ef0b9be70ea030440" title="关闭所有引脚的上拉和下拉电阻, 以及不需要唤醒功能的 IO 输入使能" alt="" coords="153,104,243,129"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_icgraph.png" border="0" usemap="#adev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_icgraph" alt=""/></div>
<map name="adev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_icgraph" id="adev__sleep__stop_8h_a4d4c631bc1d45f13302e7f874c8337eb_icgraph">
<area shape="rect" title="进入浅睡眠模式, 被唤醒后会退出该函数恢复程序继续执行, 外设工作状态以及 RAM 数据将会保持." alt="" coords="144,5,221,31"/>
<area shape="rect" href="power__manager_8c.html#aa125d952f6750a2c86b46ecfc611b399" title="请求进入某种电源模式" alt="" coords="5,5,96,31"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
